package com.facebank.usersupport.config;

import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@Configuration
public class MyConfiguration implements WebMvcConfigurer {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
//        registry.addResourceHandler("/imagess/**").addResourceLocations("file:/C:/Users/Administrator/Desktop/毕设/usersupport/static/images/upload/");
//        registry.addResourceHandler("/imagess/**").addResourceLocations("file:/C:/Users/Administrator/Desktop/work/travel/static/images/upload/");
//        registry.addResourceHandler("/imagess/**").addResourceLocations("file:/C:/Users/Administrator/Desktop/work/travel/target/classes/static/images/upload/");

    }
    }

